package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * �û���Ϣ��
 * </p>
 *
 * @author lxp
 * @since 2023-10-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserInfo对象", description="�û���Ϣ��")
public class UserInfo extends Model<UserInfo> {

    private static final long serialVersionUID = 1L;

            @ApiModelProperty(value = "ѧ�����")
    @TableId(value = "stu_id", type = IdType.AUTO)
    private Long stuId;

            @ApiModelProperty(value = "����Ա���")
    private Long adminId;

    private Long adminNum;

            @ApiModelProperty(value = "ѧ��")
    private String stuNum;

            @ApiModelProperty(value = "����")
    private String stuName;

            @ApiModelProperty(value = "����")
    private String stuAge;

            @ApiModelProperty(value = "�Ա�")
    private Integer stuSex;

            @ApiModelProperty(value = "У��")
    private String stuAddress;

            @ApiModelProperty(value = "רҵ")
    private String stuMajor;

            @ApiModelProperty(value = "�꼶")
    private String stuGrade;

            @ApiModelProperty(value = "�绰")
    private String stuPhone;

            @ApiModelProperty(value = "����")
    private String stuPassword;

            @ApiModelProperty(value = "����Σ��")
    private String stuSelfcrisis;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private byte[] stuHead;

    @Override
    protected Serializable pkVal() {
        return this.stuId;
    }

}
